var ec2_createlbstickness = {
    ec2ui_session : null,
    retVal : null,
    launch : function() {
        this.retVal.CookieName = document.getElementById("ec2ui.stickiness.cookiname").value.trim();
	this.retVal.CookieExpirationPeriod = document.getElementById("ec2ui.stickiness.timeout").value.trim();
	this.retVal.ok = true;
        return true;
    },
    init : function() {
        var loadbalancer = window.arguments[0];
        this.ec2ui_session = window.arguments[1];
        this.retVal = window.arguments[2];
	document.getElementById("ec2ui.stickiness.timeout").value = loadbalancer.LBCookieStickinessPolicies;
        document.getElementById("ec2ui.stickiness.cookiname").value = loadbalancer.AppCookieStickinessPolicies;
    }
}
